#pragma once

#include "Car.h"
#include "Config.h"

class Distributor : public Machine
{
public:

	Distributor(int capacity)
		: Machine(capacity)
	{	
	}

	virtual ~Distributor(void)
	{	
	}

	Car* GetCar()
	{
		return (Car *)GetCurrentWorkItem();
	}

protected:
	virtual int GetWorkUnits()
	{
		return Generator::GetTimeFromSeconds(GetCar()->GetLiters() / Config::DistSpeed);
	}
};

